<?php

class Skjb_Search_Xapian_MultiValueSorter
{
    public $_cPtr=null;

    function __construct() {
        $this->_cPtr=new_MultiValueSorter();
    }

    function apply($doc) {
        return MultiValueSorter_apply($this->_cPtr,$doc);
    }

    function add($valno,$forward=true) {
        MultiValueSorter_add($this->_cPtr,$valno,$forward);
    }
}